package PlugIn;

import java.awt.Dimension;
import java.awt.GridLayout;

import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;

/**
 * @author      Erwan Osouf, Lucas Ennouchi
 * @version     1.0                                
 * @since       29/01/2012
 */

public class PlugInUI extends JPanel {

	
	private static final long serialVersionUID = 1L;
	
	private JButton commandButton;
	private JLabel commandResult;

	public PlugInUI(String commandName) {
		super();
		this.commandButton = new JButton(commandName);
		this.commandResult = new JLabel();
		this.setLayout(new GridLayout(1,2));
		JPanel paneB = new JPanel();
		JPanel paneR = new JPanel();
		paneB.add(commandButton);
		paneR.add(commandResult);
		this.add(paneB);
		this.add(paneR);
	}

	public JButton getCommandButton() {
		return commandButton;
	}

	public void setCommandResult(String result) {
		this.commandResult.setText(result);
	}
	
	

}
